﻿// Copyright (c)  MOKEYISH. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

namespace NSQL.Expressions.Functions
{
    public class AddIntervalFunction : BaseExpression, IAddIntervalFunction
    {
        public IDateTimeExpression DateTime { get; set; }
        public IIntervalExpression Interval { get; set; }

        public AddIntervalFunction(IDateTimeExpression dateTime, IIntervalExpression interval)
        {
            DateTime = dateTime;
            Interval = interval;
        }
        public override T Accept<T>(IExpressionVisitor<T> visitor) => visitor.Visit(this);
    }
}